# ----------------------------------------------------------------------------
#   The confidential and proprietary information contained in this file may
#   only be used by a person authorized under and to the extent permitted
#   by a subsisting licensing agreement from ARM Limited or its affiliates.
#
#          (C)COPYRIGHT 2017 - 2018 ARM Limited or its affiliates.
#              ALL RIGHTS RESERVED
#
#   This entire notice must be reproduced on all copies of this file
#   and copies of this file may only be made by a person if such person is
#   permitted to do so under the terms of a subsisting license agreement
#   from ARM Limited or its affiliates.
# ----------------------------------------------------------------------------
#
cmake_minimum_required(VERSION 2.6)

# includes
ADD_GLOBALDIR(${CMAKE_CURRENT_SOURCE_DIR}/cose-c)

FILE(
	GLOB_RECURSE  
	cose

	"${CMAKE_CURRENT_SOURCE_DIR}/source/*.c"
)

message ("*********************************************************************")
message ("cose = [[${cose}]]")
message ("*********************************************************************")

CREATE_LIBRARY(cose "${cose}" "")
if (${OS_BRAND} MATCHES "Zephyr")
	target_link_libraries(cose PUBLIC ${TLS_LIBRARY})
endif()
ADDSUBDIRS()
